<html>
<head><meta charset="utf-8"><title>environment variables in config · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html">environment variables in config</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="212715549"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212715549" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Stu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212715549">(Oct 08 2020 at 16:26)</a>:</h4>
<p>Hey,<br>
Is it possible to use environment variables in <code>config.toml</code> because <code>$LLVM_CONFIG</code> doesnt work?</p>



<a name="212716280"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716280" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716280">(Oct 08 2020 at 16:32)</a>:</h4>
<p>not that I'm aware of :/</p>



<a name="212716378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Stu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716378">(Oct 08 2020 at 16:33)</a>:</h4>
<p><span aria-label="sad" class="emoji emoji-2639" role="img" title="sad">:sad:</span></p>



<a name="212716411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Stu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716411">(Oct 08 2020 at 16:33)</a>:</h4>
<p>then this will probably be my first rustc contribution</p>



<a name="212716440"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716440" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716440">(Oct 08 2020 at 16:34)</a>:</h4>
<p>you want <code>src/bootstrap/{bootstrap.py,config.rs}</code> I think</p>



<a name="212716485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Stu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716485">(Oct 08 2020 at 16:34)</a>:</h4>
<p>I should open an issue first right?</p>



<a name="212716487"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716487" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716487">(Oct 08 2020 at 16:34)</a>:</h4>
<p>It will be a little tricky because things are parsed in two places</p>



<a name="212716508"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212716508" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212716508">(Oct 08 2020 at 16:34)</a>:</h4>
<p>ehhh if <span class="user-mention" data-user-id="116122">@simulacrum</span> has no objections I see no reason not to implement it straight away</p>



<a name="212721880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212721880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212721880">(Oct 08 2020 at 17:14)</a>:</h4>
<p>I think we shouldn't do this; I'd like to hear more about the use case</p>



<a name="212721895"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212721895" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212721895">(Oct 08 2020 at 17:14)</a>:</h4>
<p>I know cargo has had a ton of trouble with getting this to work</p>



<a name="212722504"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212722504" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212722504">(Oct 08 2020 at 17:20)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="230287">@Stu</span></p>



<a name="212722633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/environment%20variables%20in%20config/near/212722633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Stu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/environment.20variables.20in.20config.html#212722633">(Oct 08 2020 at 17:20)</a>:</h4>
<p>Okay. It's not really a problem for me, so I'm okay with not having it.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>